
dict1= {'a': '1', 'b': '2', 'c': '3', 'D': '4', 'E': '5', 'F': '6', }
dict2 = {}
name= list(dict1.keys())
for p in name:
  flag = 0
  if p in dict1:
    flag = 1
    send = dict1.pop(p)
    get= dict1.popitem()
    dict2[p] = get[1]
  if flag:
    dict1[p] = send

print(dict2)
